package com.hlabexamples.fabrevealmenu;

import ohos.aafwk.content.Intent;
import ohos.agp.components.Component;
import ohos.agp.components.ComponentContainer;
import ohos.agp.components.LayoutScatter;

/**
 * DemoXmlFraction
 *
 * @since 2021-05-14
 */
public class DemoXmlFraction extends BaseFraction {
    /**
     * onComponentAttached
     *
     * @param scatter scatter
     * @param container container
     * @param intent intent
     * @return Component
     */
    @Override
    protected Component onComponentAttached(LayoutScatter scatter, ComponentContainer container, Intent intent) {
        // 返回指定的页面
        return scatter.parse(ResourceTable.Layout_fraction_xml, container, false);
    }

    /**
     * onStart
     *
     * @param intent intent
     */
    protected void onStart(Intent intent) {
        super.onStart(intent);
        initFabMenu();
        initListeners();
    }
}
